from django.contrib.auth.models import User
from django.db import models

class Groups(models.Model):
	admin	=	models.ForeignKey(User)
	users	=	models.ManyToManyField(User,related_name="%(app_label)s_%(class)s_related")
	name	=	models.TextField(max_length=128)
	caption	=	models.TextField(max_length=128)
	created	= models.DateField()

	class Meta:
		abstract = True


class Gang(Groups):
	pass

class CNP(Groups):
	pass
